package com.itheima.hw.test3;

public class Test {

    public static void main(String[] args) {

        Car c1 = new BaoMaCar();
        c1.setBrand("宝马");
        c1.setPrice(500000);

        c1.run();

        if(c1 instanceof   GPS){
            ((GPS)c1).gps();
        }

    }
}
